package com.day01.inherit;

import com.day01.source.DataSource;

import java.util.Arrays;

public class MysqlDataSourceArgCommand extends DataSourceArgCommand {

    private String connect;

    public MysqlDataSourceArgCommand(String type, String args) {
        super(type, args);
    }

    @Override
    public void connect() {
        this.connect = "mysql Connect Get";
    }

    @Override
    public String[] getKeysFromDb() {
        return this.source.keys(this.connect);
    }
}
